package cn.momoshenchi.mq;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;


@Component

public class TopicReceiverA {


    @RabbitListener(queues = "student.a")
    public void process(String msg) {
        System.out.println("Topic ReceiverA: " + msg);
    }

}